package unit_3;

public class Demo08 {
    public static void main(String[] args) {
        int cnt = 0;
        for(int i = 100; i <=1000; i = i + 5)
        {
            if(i % 5 == 0 && i % 6 == 0)
            {
                System.out.print(i+" ");
                cnt++;
                if(cnt % 10 == 0 && cnt >=10)
                    System.out.println();
            }

        }
    }
}
